package com.lmt_6;

class Superclass{
    public Superclass() {
        System.out.println("A");
    }
    public Superclass(int i){
        this();
        System.out.println(i + "A\n");
    }
}
class Subclass extends Superclass{
    Subclass(){
        super();
        System.out.println("B");
    }
    Subclass(int i){
        super(i);
        System.out.println(i + "B\n");
    }
}
public class NN {
    public static void main(String[] args) {
        new Superclass(0);
        new Subclass();
        new Subclass(1);
    }
}
